# demo版本，临时用于文件导出

import pymongo

myclient = pymongo.MongoClient("mongodb://root:whosyourdaddy$879@10.8.0.2:20017/",socketTimeoutMS=10000)
myclient2 = pymongo.MongoClient("mongodb://root:whosyourdaddy$879@10.8.0.2:27017/",socketTimeoutMS=10000)
db = myclient['stock']
db2 = myclient2['stock']

excludes = ['']

names = db.list_collection_names()
names2 = db2.list_collection_names()

for name in names2:
    if name not in names:
        print(name)